import request from '@/utils/request'

/*获得knowledge 相应的列表*/
export function fetchList(params) {
  return request({
    url:'/knowledge/list',
    method:'get',
    params:params
  })
}

/*从一个knowledge id，获得它的具体内容*/

export function get(params) {
  return request({
    url:'/knowledge/get',
    method:'get',
    params:params
  })
}

export function add(params) {
  return request({
    url:'/knowledge/add',
    method:'post',
    params:params
  })
}
export function deletes(params) {
  return request({
    url:'/knowledge/delete',
    method:'delete',
    params:params
  })
}
export function update(params) {
  return request({
    url:'/knowledge/update',
    method:'post',
    params:params
  })
}

